package com.fofia.iotweb.common;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;

public class TimeHelper {

    public static  boolean sameTime(DateTime time1,DateTime time2){
        String formatDateTime1 = DateUtil.formatDateTime(time1);
        String formatDateTime2 = DateUtil.formatDateTime(time2);
        if(formatDateTime1==formatDateTime2){
            return true;
        }

        return false;
    }


    public static DateTime minDateTime(){
        return new DateTime("1900-01-01 00:00:00", DatePattern.NORM_DATETIME_FORMAT);
    }

}
